<?php

class GoodsViewController extends AdminController {
	public $modelName = 'Goods';
	public function init() {
		$model = $this->loadModel($this->getModelId());
		$this->modelName = $model->getAttribute('object_type');
		parent::init();
	}
	
	public function outerActions() {
		$type = lcfirst($this->modelName);
		return array(
			'view' => "actions.goods.{$type}.view",
		);
	}

}

?>